import 'package:distribution_mall_flutter/generated/json/base/json_convert_content.dart';
import 'package:distribution_mall_flutter/entity/delete_account/delete_account_captcha_token_entity.dart';

DeleteAccountCaptchaTokenBody $DeleteAccountCaptchaTokenBodyFromJson(
    Map<String, dynamic> json) {
  final DeleteAccountCaptchaTokenBody deleteAccountCaptchaTokenBody = DeleteAccountCaptchaTokenBody();
  final String? captchaToken = jsonConvert.convert<String>(
      json['captchaToken']);
  if (captchaToken != null) {
    deleteAccountCaptchaTokenBody.captchaToken = captchaToken;
  }
  return deleteAccountCaptchaTokenBody;
}

Map<String, dynamic> $DeleteAccountCaptchaTokenBodyToJson(
    DeleteAccountCaptchaTokenBody entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['captchaToken'] = entity.captchaToken;
  return data;
}

extension DeleteAccountCaptchaTokenBodyExtension on DeleteAccountCaptchaTokenBody {
  DeleteAccountCaptchaTokenBody copyWith({
    String? captchaToken,
  }) {
    return DeleteAccountCaptchaTokenBody()
      ..captchaToken = captchaToken ?? this.captchaToken;
  }
}